package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/19  15:02
 */
@ApiModel("保存用户基本信息参数")
public class UserInfoEvt implements Serializable {

    private static final long serialVersionUID = 7281505882086877328L;
    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("登录名")
    @NotBlank
    private String loginName;

    @ApiModelProperty("姓名")
    @NotBlank
    private String alias;

    @ApiModelProperty("密码(使用MD5加密)")
    private String password;

    @ApiModelProperty("用户状态")
    @NotNull
    private Integer status;

    @ApiModelProperty("用户类型")
    @NotNull
    private Integer userType = 10;

    @ApiModelProperty("邮箱")
    private String eMail;

    @ApiModelProperty("电话号码")
    @NotNull
    private String telephone;

    @ApiModelProperty("描述信息")
    private String description;

    @ApiModelProperty("办公电话")
    private String officePhone;

    @ApiModelProperty("区域ID")
    @NotNull
    private Long regionId;

    @ApiModelProperty("组织机构ID")
    @NotNull
    private Long orgId;

    @ApiModelProperty("是否合作伙伴")
    private Integer isPartner;

    @ApiModelProperty("性别")
    private Integer sex;

    @ApiModelProperty("身份证号码")
    private String pid;

    @ApiModelProperty("拼音")
    private String pingyin;

    @ApiModelProperty("生日")
    private String birthday;

    @ApiModelProperty("领导标识")
    @Column(name = "IS_LEADER")
    private Integer isLeader;

    @ApiModelProperty("全量区域ID")
    private String fullRegion;

    @ApiModelProperty("全量区域名称")
    private String fullRegionName;

    @ApiModelProperty("创建人")
    private String createUserName;

    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("补充字段1 - 单位")
    private String arg1;
    @ApiModelProperty("补充字段2 - 岗位")
    private String arg2;
    @ApiModelProperty("补充字段3")
    private String arg3;
    @ApiModelProperty("补充字段4")
    private String arg4;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOfficePhone() {
        return officePhone;
    }

    public void setOfficePhone(String officePhone) {
        this.officePhone = officePhone;
    }

    public Long getRegionId() {
        return regionId;
    }

    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Integer getIsPartner() {
        return isPartner;
    }

    public void setIsPartner(Integer isPartner) {
        this.isPartner = isPartner;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPingyin() {
        return pingyin;
    }

    public void setPingyin(String pingyin) {
        this.pingyin = pingyin;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Integer getIsLeader() {
        return isLeader;
    }

    public void setIsLeader(Integer isLeader) {
        this.isLeader = isLeader;
    }

    public String getFullRegion() {
        return fullRegion;
    }

    public void setFullRegion(String fullRegion) {
        this.fullRegion = fullRegion;
    }

    public String getFullRegionName() {
        return fullRegionName;
    }

    public void setFullRegionName(String fullRegionName) {
        this.fullRegionName = fullRegionName;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getArg1() {
        return arg1;
    }

    public void setArg1(String arg1) {
        this.arg1 = arg1;
    }

    public String getArg2() {
        return arg2;
    }

    public void setArg2(String arg2) {
        this.arg2 = arg2;
    }

    public String getArg3() {
        return arg3;
    }

    public void setArg3(String arg3) {
        this.arg3 = arg3;
    }

    public String getArg4() {
        return arg4;
    }

    public void setArg4(String arg4) {
        this.arg4 = arg4;
    }

    @Override
    public String toString() {
        return "UserInfoEvt{" +
                "userId=" + userId +
                ", loginName='" + loginName + '\'' +
                ", alias='" + alias + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", userType=" + userType +
                ", eMail='" + eMail + '\'' +
                ", telephone='" + telephone + '\'' +
                ", description='" + description + '\'' +
                ", officePhone='" + officePhone + '\'' +
                ", regionId=" + regionId +
                ", orgId=" + orgId +
                ", isPartner=" + isPartner +
                ", sex=" + sex +
                ", pid='" + pid + '\'' +
                ", pingyin='" + pingyin + '\'' +
                ", birthday='" + birthday + '\'' +
                ", isLeader=" + isLeader +
                ", fullRegion='" + fullRegion + '\'' +
                ", fullRegionName='" + fullRegionName + '\'' +
                ", createUserName='" + createUserName + '\'' +
                ", createTime='" + createTime + '\'' +
                ", arg1='" + arg1 + '\'' +
                ", arg2='" + arg2 + '\'' +
                ", arg3='" + arg3 + '\'' +
                ", arg4='" + arg4 + '\'' +
                '}';
    }
}
